import {request} from "../../utils/request";

Page({

    /**
     * 页面的初始数据
     */
    data: {
        custom:wx.getMenuButtonBoundingClientRect(),
        letter:"ABCDEFGHIJKLMNOPQRSTUVWXYZ#".split(''),
        citys:[],
        tapitem:''
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
        this.getCityList()
    },
    onChange(e) {
        this.setData({tapitem:'a'+(e.currentTarget.dataset.v != '#' ? e.currentTarget.dataset.v : 'jing')})
    },
    getCityList(){
        request({
            url:"/miniprogram/system/getCity",
        }).then(res=>{
            this.setData({citys:res.data})
        })
    }
})